package com.hxzy.framework.web.annonations;

import com.hxzy.framework.feign.FeignInterceptor;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClientsConfiguration;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/**
 * @Author wy
 * @Description 自定义feign注解
 * @Date 2024/1/26 9:50
 * @Version 1.0
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Documented
@EnableFeignClients
@Import(value = {FeignInterceptor.class})
public @interface EnableSaasFeignClients {

    String[] value() default {};


    /**
     * 默认自定义扫描包
     * @return
     */
    String[] basePackages() default { "com.hxzy.module"};


    Class<?>[] basePackageClasses() default {};


    Class<?>[] defaultConfiguration() default {};

    Class<?>[] clients() default {};
}
